8 Get Dictionary Value for lccn in [2 bookMetadataOpenLibrary] »
9 Run Shortcut Library of Congress - Perform Item Search ➔ bookMetadataLoC » 14 16 50 52
Input
: [8 Dictionary Value]
Workflow
: { "workflowIdentifier": "3A37A727-43DB-437A-B1F7-CEDB0B8D3294",
"workflowName": "Library of Congress - Perform Item Search",
"isSelf": false
}
10 Get Dictionary Value for subject in [2 bookMetadataOpenLibrary] ➔ subject »
11 If [10 subject] has any value
12 Get First Item from List [2 bookMetadataOpenLibrary as Dictionary.subject]
13 Otherwise
14 Get Dictionary Value for genre in [9 bookMetadataLoC] »
15 If [14 Dictionary Value] has any value
16 Get First Item from List [9 bookMetadataLoC as Dictionary.genre]
17 Otherwise
19 End If
20 End If ▵13
ContentItemLimitEnabled
: true
ContentItemLimitNumber
: 1
ContentItemFilter
: • All the following are true
List is [1 ◻️ Book]
Title is [24 parentReminderTitle]
Is Completed
Is Flagged
34 Text
[30 author(s)] | [31 title] : [32 subtitle]
36 Text ➔ reminderTitle
[30 author(s)] | [31 title]
ContentItemLimitEnabled
: true
ContentItemLimitNumber
: 1
ContentItemFilter
: • All the following are true
Title is [37 reminderTitle]
Is Completed
40 URL Encode [31 title] +[30 author(s)] » 42 44
41 If [4 Language] is Chinese
42 URL https://search.books.com.tw/search/query/key/[40 URL Encoded Text]
43 Otherwise
44 URL https://www.amazon.com/s?k=[40 URL Encoded Text]
45 End If » 56
46 Get Dictionary Value for cover_i in [2 bookMetadataOpenLibrary] ➔ Cover ID »
47 URL https://covers.openlibrary.org/b/id/[46 Cover ID] -M.jpg »
48 Get Contents of URL [47 URL] »
49 Get Images from [48 Contents of URL] » 56
50 Get Dictionary Value for description in [9 bookMetadataLoC] ➔ description »
51 Combine Text [50 description] with New Lines » 54
52 Get Dictionary Value for contents in [9 bookMetadataLoC] ➔ contents »
53 Combine Text [52 contents] with New Lines »
54 Text »
[51 Combined Text]
[53 Combined Text]
55 Run Shortcut Remove Empty Lines »
Workflow
: { "workflowIdentifier": "29B90F7B-CEA9-4A90-B8CD-ED64C4913472",
"workflowName": "Remove Empty Lines",
"isSelf": false
}
56 Add New Reminder [37 reminderTitle] to Reminders with No Alert » 57 60
CalendarItemNotes
: [55 Shortcut Result]
CalendarDescriptor
: [1 ◻️ Book]
57 Set Parent Reminder of Reminder [56 New Reminder]
ReminderContentItemParentReminder
: [28 parentReminder]